﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
    <script>
        /*
            some:只要其中一个为true 就会返回true的，
            every:方法必须所有都返回true才会返回true，
            every:一假即假
            some:一真即真
        */
        var arr = [1, 3, 5, 17, 9, 10];
        let result = arr.every((value, index, array) => {
            console.log(value);
            if (value < 10) {
                return true;
            }
        });
        console.log(result);
    </script>
</body>
</html>